﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Marmat.Forms.Skin
{
    partial class TreeView
    {
        /// <summary>
        /// 将  Marmat.Forms.Skin.TreeView.Value 属性重置为其默认值。
        /// </summary>
        public void ResetItemHeight()
        {
            this.itemHeight = -1;
        }

        /// <summary>
        /// 是否应该序列化 ItemHeight 属性。
        /// </summary>
        /// <returns></returns>
        public bool ShouldSerializeItemHeight()
        {
            return !(this.itemHeight == -1);
        }
    }
}
